// folktale 中的 compose、curry的使用

const { compose, curry } = require('folktale/core/lambda')
const { toUpper, first } = require('lodash/fp')

let c = curry(2, (x,y)=>x+y)
console.log(c(2,3))
console.log(c(2)(3))

const r = compose(toUpper, first)
console.log(r(['husky', 'su']))